<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<form name="form1">
			
		
		<input type="image" name="hand" value="头像" />
		</form>
		<button onclick="add()">添加</button>
		<script type="text/javascript">
			function add()
			{
				var hd=document.createElement("img")
				hd.type="image"
				hd.name="nickname"
				hd.value=
				
				//放到某个元素下面
				form1.appendChild(hd)
				
			}
			
			
		</script>
		
		
		
	</body>
</html>
